200 |
How can I align the column to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Column")))->PutAlignment(EXG2ANTTLib::RightAlignment); spG2antt1->GetItems()->AddItem(long(0)); spG2antt1->GetItems()->AddItem(long(1)); |
199 |
How do I change the column's caption
|
198 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutFormatAnchor(VARIANT_FALSE,L"<b><u><fgcolor=880000> </fgcolor></u></b>"); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValueFormat(var_Items->AddItem("Just an <a1>anchor</a> element ..."),long(0),EXG2ANTTLib::exHTML); EXG2ANTTLib::IItemsPtr var_Items1 = spG2antt1->GetItems(); var_Items1->PutCellValueFormat(var_Items1->AddItem("Just another <a2>anchor</a> element ..."),long(0),EXG2ANTTLib::exHTML); spG2antt1->GetItems()->AddItem("next item"); |
197 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutFormatAnchor(VARIANT_TRUE,L"<b><u><fgcolor=FF0000> </fgcolor></u></b>"); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValueFormat(var_Items->AddItem("Just an <a1>anchor</a> element ..."),long(0),EXG2ANTTLib::exHTML); EXG2ANTTLib::IItemsPtr var_Items1 = spG2antt1->GetItems(); var_Items1->PutCellValueFormat(var_Items1->AddItem("Just another <a2>anchor</a> element ..."),long(0),EXG2ANTTLib::exHTML); |
196 |
Can I change the font for the tooltip
|
195 |
Can I change the font for the tooltip
|
194 |
Can I change the order of the buttons in the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutScrollOrderParts(EXG2ANTTLib::exHScroll,L"t,l,r"); spG2antt1->PutScrollOrderParts(EXG2ANTTLib::exVScroll,L"t,l,r"); spG2antt1->PutScrollBars(EXG2ANTTLib::exDisableBoth); |
193 |
The thumb size seems to be very small. Can I make it bigger
|
192 |
How can I display my text on the scroll bar, using a different font
|
191 |
How can I display my text on the scroll bar, using a different font
|
190 |
How can I display my text on the scroll bar
|
189 |
How do I enlarge or change the size of the control's scrollbars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutScrollHeight(18); spG2antt1->PutScrollWidth(18); spG2antt1->PutScrollButtonWidth(18); spG2antt1->PutScrollButtonHeight(18); spG2antt1->PutScrollBars(EXG2ANTTLib::exDisableBoth); |
188 |
How do I assign a tooltip to a scrollbar
|
187 |
How do I assign an icon to the button in the scrollbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spG2antt1->PutScrollPartVisible(EXG2ANTTLib::exHScroll,EXG2ANTTLib::exLeftB1Part,VARIANT_TRUE); spG2antt1->PutScrollPartCaption(EXG2ANTTLib::exHScroll,EXG2ANTTLib::exLeftB1Part,L"<img>1</img>"); spG2antt1->PutScrollHeight(18); spG2antt1->PutScrollButtonWidth(18); spG2antt1->PutScrollBars(EXG2ANTTLib::exDisableNoHorizontal); |
186 |
I need to add a button in the scroll bar. Is this possible
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutScrollPartVisible(EXG2ANTTLib::exHScroll,EXG2ANTTLib::exLeftB1Part,VARIANT_TRUE); spG2antt1->PutScrollPartCaption(EXG2ANTTLib::exHScroll,EXG2ANTTLib::exLeftB1Part,L"1"); spG2antt1->PutScrollBars(EXG2ANTTLib::exDisableNoHorizontal); |
185 |
Can I display an additional buttons in the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutScrollPartVisible(EXG2ANTTLib::exHScroll,EXG2ANTTLib::exLeftB1Part,VARIANT_TRUE); spG2antt1->PutScrollPartVisible(EXG2ANTTLib::exHScroll,EXG2ANTTLib::exLeftB2Part,VARIANT_TRUE); spG2antt1->PutScrollPartVisible(EXG2ANTTLib::exHScroll,EXG2ANTTLib::exRightB6Part,VARIANT_TRUE); spG2antt1->PutScrollPartVisible(EXG2ANTTLib::exHScroll,EXG2ANTTLib::exRightB5Part,VARIANT_TRUE); spG2antt1->PutScrollBars(EXG2ANTTLib::exDisableNoHorizontal); |
184 |
Can I display the picture aligned to the right, while the text aligned to the left
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutDefaultItemHeight(48); spG2antt1->GetColumns()->Add(L"C1"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); _variant_t s = var_Items->GetSplitCell(var_Items->AddItem("Text"),long(0)); var_Items->PutCellPicture(vtMissing,s,((IDispatch*)(spG2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Items->PutCellHAlignment(vtMissing,s,EXG2ANTTLib::RightAlignment); |
183 |
How can I display a custom size picture to a cell or item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutDefaultItemHeight(48); spG2antt1->GetColumns()->Add(L"C1"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellPicture(var_Items->AddItem("Text"),long(0),((IDispatch*)(spG2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); |
182 |
How can I display a multiple pictures to a cell or item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutDefaultItemHeight(48); spG2antt1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spG2antt1->PutHTMLPicture(L"pic2","c:\\exontrol\\images\\auction.gif"); spG2antt1->GetColumns()->Add(L"C1"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValueFormat(var_Items->AddItem("<img>pic1</img> Text <img>pic2</img> another text ..."),long(0),EXG2ANTTLib::exHTML); |
181 |
How do I change the column's foreground color for numbers between an interval - Range
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IConditionalFormatPtr var_ConditionalFormat = spG2antt1->GetConditionalFormats()->Add(L"dbl(%0) >= 2 and dbl(%0) <= 10",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXG2ANTTLib::FormatApplyToEnum(0x1)); spG2antt1->GetColumns()->Add(L"N1"); spG2antt1->GetColumns()->Add(L"N2"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValue(var_Items->AddItem(long(1)),long(1),long(2)); EXG2ANTTLib::IItemsPtr var_Items1 = spG2antt1->GetItems(); var_Items1->PutCellValue(var_Items1->AddItem(long(3)),long(1),long(3)); EXG2ANTTLib::IItemsPtr var_Items2 = spG2antt1->GetItems(); var_Items2->PutCellValue(var_Items2->AddItem(long(10)),long(1),long(11)); EXG2ANTTLib::IItemsPtr var_Items3 = spG2antt1->GetItems(); var_Items3->PutCellValue(var_Items3->AddItem(long(13)),long(1),long(31)); spG2antt1->PutSearchColumnIndex(1); |
180 |
How do I change the item's foreground color for numbers between an interval - Range
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetConditionalFormats()->Add(L"dbl(%0) >= 2 and dbl(%0) <= 10",vtMissing)->PutForeColor(RGB(255,0,0)); spG2antt1->GetColumns()->Add(L"Numbers"); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->GetItems()->AddItem(long(2)); spG2antt1->GetItems()->AddItem(long(10)); spG2antt1->GetItems()->AddItem(long(20)); |
179 |
How do I change the item's background color for numbers less than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetConditionalFormats()->Add(L"dbl(%0) < 10",vtMissing)->PutBackColor(RGB(255,0,0)); spG2antt1->GetColumns()->Add(L"Numbers"); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->GetItems()->AddItem(long(2)); spG2antt1->GetItems()->AddItem(long(10)); spG2antt1->GetItems()->AddItem(long(20)); |
178 |
How do I underline the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetConditionalFormats()->Add(L"dbl(%0) >= 10",vtMissing)->PutUnderline(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Numbers"); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->GetItems()->AddItem(long(2)); spG2antt1->GetItems()->AddItem(long(10)); spG2antt1->GetItems()->AddItem(long(20)); |
177 |
How do I highlight in italic the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetConditionalFormats()->Add(L"dbl(%0) >= 10",vtMissing)->PutStrikeOut(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Numbers"); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->GetItems()->AddItem(long(2)); spG2antt1->GetItems()->AddItem(long(10)); spG2antt1->GetItems()->AddItem(long(20)); |
176 |
How do I highlight in italic the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetConditionalFormats()->Add(L"dbl(%0) >= 10",vtMissing)->PutItalic(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Numbers"); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->GetItems()->AddItem(long(2)); spG2antt1->GetItems()->AddItem(long(10)); spG2antt1->GetItems()->AddItem(long(20)); |
175 |
How do I highlight in bold the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetConditionalFormats()->Add(L"dbl(%0) >= 10",vtMissing)->PutBold(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Numbers"); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->GetItems()->AddItem(long(2)); spG2antt1->GetItems()->AddItem(long(10)); spG2antt1->GetItems()->AddItem(long(20)); |
174 |
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spG2antt1->PutLinesAtRoot(EXG2ANTTLib::exGroupLinesAtRoot); spG2antt1->PutHasButtons(EXG2ANTTLib::exCustom); spG2antt1->PutHasButtonsCustom(VARIANT_FALSE,16777216); spG2antt1->PutHasButtonsCustom(VARIANT_TRUE,33554432); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2"); var_Items->InsertItem(h,vtMissing,"Child"); |
173 |
Can I use your EBN files to change the visual appearance for radio buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spG2antt1->PutRadioImage(VARIANT_FALSE,16777216); spG2antt1->PutRadioImage(VARIANT_TRUE,33554432); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Radio")))->PutDef(EXG2ANTTLib::exCellHasRadioButton,VARIANT_TRUE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("Radio 1"); var_Items->PutCellState(var_Items->AddItem("Radio 2"),long(0),1); var_Items->AddItem("Radio 3"); |
172 |
Can I use your EBN files to change the visual appearance for checkbox cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spG2antt1->PutCheckImage(EXG2ANTTLib::Unchecked,16777216); spG2antt1->PutCheckImage(EXG2ANTTLib::Checked,33554432); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Check")))->PutDef(EXG2ANTTLib::exCellHasCheckBox,VARIANT_TRUE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("Check 1"); var_Items->PutCellState(var_Items->AddItem("Check 2"),long(0),1); |
171 |
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->BeginUpdate(); EXG2ANTTLib::IAppearancePtr var_Appearance = spG2antt1->GetVisualAppearance(); var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn"); var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn"); var_Appearance->Add(3,"c:\\exontrol\\images\\hot.ebn"); spG2antt1->PutBackground(EXG2ANTTLib::exHSThumb,0x1000000); spG2antt1->PutBackground(EXG2ANTTLib::exHSThumbP,0x2000000); spG2antt1->PutBackground(EXG2ANTTLib::exHSThumbH,0x3000000); spG2antt1->PutBackground(EXG2ANTTLib::exVSThumb,0x1000000); spG2antt1->PutBackground(EXG2ANTTLib::exVSThumbP,0x2000000); spG2antt1->PutBackground(EXG2ANTTLib::exVSThumbH,0x3000000); spG2antt1->PutScrollBars(EXG2ANTTLib::ScrollBarsEnum(EXG2ANTTLib::exVScrollEmptySpace | EXG2ANTTLib::exHScrollEmptySpace | EXG2ANTTLib::exVScrollOnThumbRelease | EXG2ANTTLib::exHScrollOnThumbRelease | EXG2ANTTLib::exDisableBoth)); spG2antt1->PutScrollBySingleLine(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Def"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); var_Items->AddItem(long(3)); spG2antt1->EndUpdate(); |
170 |
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->BeginUpdate(); EXG2ANTTLib::IAppearancePtr var_Appearance = spG2antt1->GetVisualAppearance(); var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn"); var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn"); var_Appearance->Add(3,"c:\\exontrol\\images\\hot.ebn"); spG2antt1->PutBackground(EXG2ANTTLib::exHSThumb,0x1000000); spG2antt1->PutBackground(EXG2ANTTLib::exHSThumbP,0x2000000); spG2antt1->PutBackground(EXG2ANTTLib::exHSThumbH,0x3000000); spG2antt1->PutScrollBars(EXG2ANTTLib::ScrollBarsEnum(EXG2ANTTLib::exVScrollEmptySpace | EXG2ANTTLib::exHScrollEmptySpace | EXG2ANTTLib::exVScrollOnThumbRelease | EXG2ANTTLib::exHScrollOnThumbRelease | EXG2ANTTLib::exDisableBoth)); spG2antt1->PutScrollBySingleLine(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Def"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); var_Items->AddItem(long(3)); spG2antt1->EndUpdate(); |
169 |
I've seen that you can change the visual appearance for the scroll bar. How can I do that
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spG2antt1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spG2antt1->PutBackground(EXG2ANTTLib::exSBtn,0x1000000); spG2antt1->PutBackground(EXG2ANTTLib::exSBtnP,0x2000000); spG2antt1->PutBackground(EXG2ANTTLib::exSBtnH,0x3000000); spG2antt1->PutBackground(EXG2ANTTLib::exHSBack,RGB(240,240,240)); spG2antt1->PutBackground(EXG2ANTTLib::exVSBack,RGB(240,240,240)); spG2antt1->PutBackground(EXG2ANTTLib::exScrollSizeGrip,RGB(240,240,240)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E1")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E2")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E3")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E4")))->PutWidth(32); spG2antt1->PutColumnAutoResize(VARIANT_FALSE); spG2antt1->PutScrollBars(EXG2ANTTLib::exDisableBoth); |
168 |
Is there any option to highligth the column from the cursor - point
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->PutBackground(EXG2ANTTLib::exCursorHoverColumn,0x1000000); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E1")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E2")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E3")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E4")))->PutWidth(32); |
167 |
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->PutBackground(EXG2ANTTLib::exSelBackColorFilter,0x1000000); spG2antt1->PutBackground(EXG2ANTTLib::exSelForeColorFilter,RGB(255,20,20)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE); |
166 |
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spG2antt1->PutBackground(EXG2ANTTLib::exDateHeader,0x1000000); spG2antt1->PutBackground(EXG2ANTTLib::exDateTodayUp,0x1000000); spG2antt1->PutBackground(EXG2ANTTLib::exDateTodayDown,0x2000000); spG2antt1->PutBackground(EXG2ANTTLib::exDateScrollThumb,0x1000000); spG2antt1->PutBackground(EXG2ANTTLib::exDateScrollRange,RGB(230,230,230)); spG2antt1->PutBackground(EXG2ANTTLib::exDateSeparatorBar,RGB(230,230,230)); spG2antt1->PutBackground(EXG2ANTTLib::exDateSelect,0x1000000); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date"))); var_Column->PutFilterType(EXG2ANTTLib::exDate); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterDate(VARIANT_TRUE); |
165 |
How do I change the visual aspect of the close button in the filter bar, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->PutBackground(EXG2ANTTLib::exFooterFilterBarButton,0x1000000); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Filter")))->PutFilterType(EXG2ANTTLib::exBlanks); spG2antt1->ApplyFilter(); |
164 |
How do I change the visual aspect of buttons in the cell, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spG2antt1->PutBackground(EXG2ANTTLib::exCellButtonUp,0x1000000); spG2antt1->PutBackground(EXG2ANTTLib::exCellButtonDown,0x2000000); spG2antt1->PutSelForeColor(RGB(0,0,0)); spG2antt1->PutShowFocusRect(VARIANT_FALSE); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Column 1")))->PutDef(EXG2ANTTLib::exCellHasButton,VARIANT_TRUE); spG2antt1->GetItems()->AddItem("Button 1"); spG2antt1->GetItems()->AddItem("Button 2"); spG2antt1->GetColumns()->Add(L"Column 2"); |
163 |
How do I change the visual aspect of the drop down filter button, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->PutBackground(EXG2ANTTLib::exHeaderFilterBarButton,0x1000000); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE); |
162 |
How do I enable resizing the columns at runtime
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutColumnsAllowSizing(VARIANT_TRUE); spG2antt1->PutMarkSearchColumn(VARIANT_FALSE); spG2antt1->PutHeaderVisible(EXG2ANTTLib::exHeaderHidden); spG2antt1->GetColumns()->Add(L"Column 1"); spG2antt1->GetColumns()->Add(L"Column 2"); spG2antt1->PutDrawGridLines(EXG2ANTTLib::exVLines); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValue(var_Items->AddItem("Item 1"),long(1),"Sub Item 1"); EXG2ANTTLib::IItemsPtr var_Items1 = spG2antt1->GetItems(); var_Items1->PutCellValue(var_Items1->AddItem("Item 2"),long(1),"Sub Item 2"); |
161 |
How can I select the second inner column when spliting the cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelectColumnInner(1); spG2antt1->PutFullRowSelect(EXG2ANTTLib::exColumnSel); spG2antt1->PutDrawGridLines(EXG2ANTTLib::exAllLines); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValue(vtMissing,var_Items->GetSplitCell(var_Items->AddItem("Split Cell 1.1"),long(0)),"Split Cell 2.1"); var_Items->PutCellValue(vtMissing,var_Items->GetSplitCell(var_Items->AddItem("Split Cell 1.2"),long(0)),"Split Cell 2.2"); var_Items->PutSelectItem(var_Items->GetFirstVisibleItem(),VARIANT_TRUE); |
160 |
How can I sort by multiple columns
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSingleSort(VARIANT_FALSE); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"C1")))->PutSortOrder(EXG2ANTTLib::SortAscending); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"C2")))->PutSortOrder(EXG2ANTTLib::SortDescending); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"C3")))->PutSortOrder(EXG2ANTTLib::SortAscending); |
159 |
How can I add several columns to control's sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSortBarVisible(VARIANT_TRUE); spG2antt1->PutSortBarColumnWidth(48); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"C1")))->PutSortOrder(EXG2ANTTLib::SortAscending); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"C2")))->PutSortOrder(EXG2ANTTLib::SortDescending); |
158 |
How can I change the width of the columns being displayed in the sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSortBarVisible(VARIANT_TRUE); spG2antt1->PutSortBarColumnWidth(48); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"C1")))->PutSortOrder(EXG2ANTTLib::SortAscending); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"C2")))->PutSortOrder(EXG2ANTTLib::SortDescending); |
157 |
How can I change the height of the sort bar's
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSortBarVisible(VARIANT_TRUE); spG2antt1->PutSortBarHeight(48); |
156 |
How can I change the sort bar's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSortBarVisible(VARIANT_TRUE); spG2antt1->PutForeColorSortBar(RGB(255,0,0)); |
155 |
How can I change the visual appearance of the control's sort bar, using EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spG2antt1->PutSortBarVisible(VARIANT_TRUE); spG2antt1->PutBackColorSortBar(0x1000000); spG2antt1->PutBackColorSortBarCaption(0x2000000); spG2antt1->PutAppearance(EXG2ANTTLib::None2); |
154 |
How can I change the sort bar's background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSortBarVisible(VARIANT_TRUE); spG2antt1->PutBackColorSortBar(RGB(255,0,0)); spG2antt1->PutBackColorSortBarCaption(RGB(128,0,0)); |
153 |
How can I change the default caption being displayed in the control's sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSortBarVisible(VARIANT_TRUE); spG2antt1->PutSortBarCaption(L"new caption"); |
152 |
How can I show the locked / fixed items on the bottom side of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutShowLockedItems(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutLockedItemCount(EXG2ANTTLib::exMiddle,2); var_Items->PutCellValue(var_Items->GetLockedItem(EXG2ANTTLib::exMiddle,0),long(0),"locked item 1"); var_Items->PutCellValue(var_Items->GetLockedItem(EXG2ANTTLib::exMiddle,1),long(0),"locked item 2"); var_Items->AddItem("un-locked item"); |
151 |
How can I show the locked / fixed items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutShowLockedItems(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutLockedItemCount(EXG2ANTTLib::exTop,2); var_Items->PutCellValue(var_Items->GetLockedItem(EXG2ANTTLib::exTop,0),long(0),"locked item 1"); var_Items->PutCellValue(var_Items->GetLockedItem(EXG2ANTTLib::exTop,1),long(0),"locked item 2"); var_Items->AddItem("un-locked item"); |
150 |
How can I hide the locked / fixed items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutShowLockedItems(VARIANT_FALSE); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutLockedItemCount(EXG2ANTTLib::exTop,1); var_Items->PutCellValue(var_Items->GetLockedItem(EXG2ANTTLib::exTop,0),long(0),"locked item"); var_Items->AddItem("un-locked item"); |
149 |
How can I show the control's sort bar
|
148 |
How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutPictureLevelHeader(IPictureDispPtr(((IDispatch*)(spG2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))))); spG2antt1->PutPictureDisplayLevelHeader(EXG2ANTTLib::Stretch); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E1")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E2")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E3")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E4")))->PutWidth(32); |
147 |
How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutPictureLevelHeader(IPictureDispPtr(((IDispatch*)(spG2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))))); spG2antt1->PutPictureDisplayLevelHeader(EXG2ANTTLib::MiddleRight); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"E")))->PutWidth(32); |
146 |
How can I display a picture on the control's header, when multiple levels are displayed
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutPictureLevelHeader(IPictureDispPtr(((IDispatch*)(spG2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); |
145 |
How can I change the header's background color, when multiple levels are displayed
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutBackColorLevelHeader(RGB(250,0,0)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); |
144 |
Can I programmatically scroll the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetColumns()->Add(L"Column"); spG2antt1->GetItems()->AddItem(long(0)); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->GetItems()->AddItem(long(2)); spG2antt1->GetItems()->AddItem(long(3)); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); spG2antt1->PutScrollPos(VARIANT_TRUE,1); |
143 |
How do I disable expanding or collapsing an item when user presses the arrow keys
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutExpandOnKeys(VARIANT_FALSE); spG2antt1->PutLinesAtRoot(EXG2ANTTLib::exLinesAtRoot); spG2antt1->GetColumns()->Add(L"Column 1"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
142 |
How do I expand automatically the items while user types characters to searching for something ( incremental searching )
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutExpandOnSearch(VARIANT_TRUE); spG2antt1->PutLinesAtRoot(EXG2ANTTLib::exLinesAtRoot); spG2antt1->PutAutoSearch(VARIANT_TRUE); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Column")))->PutAutoSearch(EXG2ANTTLib::exContains); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->InsertItem(var_Items->InsertItem(var_Items->AddItem("text"),vtMissing,"some text"),vtMissing,"another text"); var_Items->InsertItem(var_Items->InsertItem(var_Items->AddItem("text"),vtMissing,"some text"),vtMissing,"another text"); |
141 |
Can I programmatically scroll the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetColumns()->Add(L"Column"); spG2antt1->GetItems()->AddItem(long(0)); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->GetItems()->AddItem(long(2)); spG2antt1->GetItems()->AddItem(long(3)); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); spG2antt1->Scroll(EXG2ANTTLib::exScrollDown,vtMissing); |
140 |
Do you have some function to load data from a safe array
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetColumns()->Add(L"Column"); spG2antt1->GetItems()->AddItem(long(0)); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); |
139 |
Do you have some function to retrieve all items to a safe array
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetColumns()->Add(L"Column"); spG2antt1->GetItems()->AddItem(long(0)); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); spG2antt1->GetItems()->AddItem(long(2)); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); spG2antt1->GetItems()->AddItem(long(3)); |
138 |
How can still display the selected items when the control loses the focus
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutHideSelection(VARIANT_FALSE); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("Item 3"); var_Items->AddItem("Item 1"); var_Items->PutSelectItem(var_Items->AddItem("Item 2"),VARIANT_TRUE); |
137 |
How can I hide a column
|
136 |
How can I ensure that a column is visible and fits the control's client area
|
135 |
I've seen that the width of the tooltip is variable. Can I make it larger
|
134 |
How do I disable showing the tooltip for all control
|
133 |
How do I let the tooltip being displayed longer
|
132 |
How do I show the tooltip quicker
|
131 |
How do I change the caption being displayed in the control's filter bar
|
130 |
How do I disable expanding or collapsing an item when user double clicks it
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutExpandOnDblClick(VARIANT_FALSE); spG2antt1->PutLinesAtRoot(EXG2ANTTLib::exLinesAtRoot); spG2antt1->PutIndent(13); spG2antt1->GetColumns()->Add(L"Column 1"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
129 |
How do I search case sensitive, using your incremental search feature
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutAutoSearch(VARIANT_TRUE); spG2antt1->PutASCIILower(L""); EXG2ANTTLib::IColumnsPtr var_Columns = spG2antt1->GetColumns(); ((EXG2ANTTLib::IColumnPtr)(var_Columns->Add(L"exStartWith")))->PutAutoSearch(EXG2ANTTLib::exStartWith); ((EXG2ANTTLib::IColumnPtr)(var_Columns->Add(L"exContains")))->PutAutoSearch(EXG2ANTTLib::exContains); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValue(var_Items->AddItem("text"),long(1),"another text"); EXG2ANTTLib::IItemsPtr var_Items1 = spG2antt1->GetItems(); var_Items1->PutCellValue(var_Items1->AddItem("text"),long(1),"another text"); |
128 |
How do I disable the control
|
127 |
How do I enable the incremental search feature within a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutAutoSearch(VARIANT_TRUE); EXG2ANTTLib::IColumnsPtr var_Columns = spG2antt1->GetColumns(); ((EXG2ANTTLib::IColumnPtr)(var_Columns->Add(L"exStartWith")))->PutAutoSearch(EXG2ANTTLib::exStartWith); ((EXG2ANTTLib::IColumnPtr)(var_Columns->Add(L"exContains")))->PutAutoSearch(EXG2ANTTLib::exContains); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValue(var_Items->AddItem("text"),long(1),"another text"); EXG2ANTTLib::IItemsPtr var_Items1 = spG2antt1->GetItems(); var_Items1->PutCellValue(var_Items1->AddItem("text"),long(1),"another text"); |
126 |
How do I call your x-script language
|
125 |
How do I call your x-script language
|
124 |
How do I show alternate rows in different background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutBackColorAlternate(RGB(240,240,240)); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("Item 1"); var_Items->AddItem("Item 2"); var_Items->AddItem("Item 3"); var_Items->AddItem("Item 4"); var_Items->AddItem("Item 5"); |
123 |
How do I enlarge the drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutFilterBarDropDownHeight(-320); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterBarDropDownWidth(-320); spG2antt1->GetItems()->AddItem("Item 1"); spG2antt1->GetItems()->AddItem("Item 2"); |
122 |
How do I filter programmatically the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXG2ANTTLib::exPattern); var_Column->PutFilter(L"Item*"); spG2antt1->GetItems()->AddItem("Item 1"); spG2antt1->GetItems()->AddItem(""); spG2antt1->GetItems()->AddItem("Item 2"); spG2antt1->ApplyFilter(); |
121 |
How do I change the font of the control's filterbar
|
120 |
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->PutFilterBarBackColor(0x1000000); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXG2ANTTLib::exBlanks); spG2antt1->ApplyFilter(); |
119 |
How do I change the background color of the control's filterbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutFilterBarBackColor(RGB(240,240,240)); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXG2ANTTLib::exBlanks); spG2antt1->ApplyFilter(); |
118 |
How do I change the foreground color of the control's filterbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutFilterBarForeColor(RGB(255,0,0)); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXG2ANTTLib::exBlanks); spG2antt1->ApplyFilter(); |
117 |
How do I change the height of the control's filterbar
|
116 |
How do I change the header's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutForeColorHeader(RGB(255,0,0)); spG2antt1->GetColumns()->Add(L"Column 1"); spG2antt1->GetColumns()->Add(L"Column 2"); spG2antt1->GetItems()->AddItem("Item 1"); |
115 |
I have a picture on the control's background, the question is how do I draw selection as semi-transparent
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutPicture(IPictureDispPtr(((IDispatch*)(spG2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spG2antt1->PutSelBackMode(EXG2ANTTLib::exTransparent); spG2antt1->GetColumns()->Add(L"Column"); spG2antt1->GetItems()->AddItem("Item 1"); spG2antt1->GetItems()->AddItem("Item 2"); |
114 |
It seems that the control uses the TAB key, is there any way to avoid that
|
113 |
I have FullRowSelect property on False, how do I force the user to select cells only in a specified column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelectColumnIndex(1); spG2antt1->PutFullRowSelect(EXG2ANTTLib::exColumnSel); spG2antt1->PutSelectColumn(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Column 1"); spG2antt1->GetColumns()->Add(L"Column 2"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValue(var_Items->AddItem("Item 1"),long(1),"SubItem 1"); |
112 |
How do I assign a database to your control, using ADO, ADOR or ADODB objects
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutColumnAutoResize(VARIANT_FALSE); spG2antt1->PutContinueColumnScroll(VARIANT_FALSE); /* Includes the definition for CreateObject function like follows: #include <comdef.h> IUnknownPtr CreateObject( BSTR Object ) { IUnknownPtr spResult; spResult.CreateInstance( Object ); return spResult; }; */ /* Copy and paste the following directives to your header file as it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library' #import <msado15.dll> rename("EOF","REOF") */ ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset"); rs->Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access\\misc.accdb",ADODB::adOpenStatic,ADODB::adLockOptimistic,0); spG2antt1->PutDataSource(((ADODB::_RecordsetPtr)(rs))); |
111 |
How do I change the visual appearance effect for the selected item, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spG2antt1->PutSelBackColor(0x1000000); spG2antt1->PutSelForeColor(RGB(0,0,0)); spG2antt1->PutShowFocusRect(VARIANT_FALSE); spG2antt1->GetColumns()->Add(L"Column"); spG2antt1->GetItems()->AddItem(long(0)); spG2antt1->GetItems()->AddItem(long(1)); |
110 |
How do I change the colors for the selected item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelBackColor(RGB(0,0,0)); spG2antt1->GetColumns()->Add(L"Column"); spG2antt1->GetItems()->AddItem(long(0)); spG2antt1->GetItems()->AddItem(long(1)); |
109 |
How can I hide the frame/rectangle arround the focused item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->BeginUpdate(); spG2antt1->PutSelBackColor(spG2antt1->GetBackColor()); spG2antt1->PutSelForeColor(spG2antt1->GetForeColor()); spG2antt1->PutShowFocusRect(VARIANT_FALSE); spG2antt1->GetColumns()->Add(L"Column"); spG2antt1->GetItems()->AddItem(long(0)); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->GetItems()->AddItem(""); spG2antt1->EndUpdate(); |
108 |
How can I change the control's font
|
107 |
I can't scroll to the end of the data. What can I do
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutScrollBySingleLine(VARIANT_TRUE); spG2antt1->PutDrawGridLines(EXG2ANTTLib::exRowLines); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutItemHeight(var_Items->AddItem(long(0)),13); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); EXG2ANTTLib::IItemsPtr var_Items1 = spG2antt1->GetItems(); var_Items1->PutItemHeight(var_Items1->AddItem(long(1)),26); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); EXG2ANTTLib::IItemsPtr var_Items2 = spG2antt1->GetItems(); var_Items2->PutItemHeight(var_Items2->AddItem(long(2)),36); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); EXG2ANTTLib::IItemsPtr var_Items3 = spG2antt1->GetItems(); var_Items3->PutItemHeight(var_Items3->AddItem(long(3)),48); spG2antt1->PutItems(spG2antt1->GetItems(long(0)),vtMissing); |
106 |
How do I specify the column where the tree lines / hierarchy are shown
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutLinesAtRoot(EXG2ANTTLib::exGroupLinesAtRoot); spG2antt1->PutTreeColumnIndex(1); spG2antt1->GetColumns()->Add(L"Column 1"); spG2antt1->GetColumns()->Add(L"Column 2"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); long h = var_Items->AddItem("Root 1.1"); var_Items->PutCellValue(h,long(1),"Root 1.2"); var_Items->PutCellValue(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); var_Items->PutCellValue(var_Items->InsertItem(h,vtMissing,"Child 2.1"),long(1),"Child 2.2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2.1"); var_Items->PutCellValue(h,long(1),"Root 2.2"); var_Items->PutCellValue(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); |
105 |
How do I specify the indentation of the child items relative to their parents
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutLinesAtRoot(EXG2ANTTLib::exGroupLinesAtRoot); spG2antt1->PutIndent(11); spG2antt1->GetColumns()->Add(L"Column"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2"); var_Items->InsertItem(h,vtMissing,"Child"); |
104 |
Is there any option to select an item using the right button of the mouse (rclick)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutRClickSelect(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Column"); spG2antt1->GetItems()->AddItem("Item 1"); spG2antt1->GetItems()->AddItem("Item 2"); |
103 |
I have FullRowSelect property on False, how do I select a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelectColumnIndex(1); spG2antt1->PutFullRowSelect(EXG2ANTTLib::exColumnSel); |
102 |
How can I scroll columns one by one, not pixel by pixel
|
101 |
How can I enable multiple items selection
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSingleSel(VARIANT_FALSE); spG2antt1->GetColumns()->Add(L"Column"); spG2antt1->GetItems()->AddItem(long(0)); spG2antt1->GetItems()->AddItem(long(1)); spG2antt1->GetItems()->AddItem(long(2)); |